#include<iostream>
using std::cout;
using std::cin;
using std::endl;

int main(void)
{
	int N,i,j;
	cin >> N;
	int (* num)[2] = new int[N][2];
	for( i=0; i<N; i++ )
	  for( j=0; j<2; j++ )
	  {
		  cin >> num[i][j];
	  }
	for(i=0;i<N;i++)
	  { 
		  cout << num[i][0] + num[i][1] << endl;
	  }
	
	delete [] num;
	return 0;  
}